package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.DaoEcologyPointsDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.DaoEcologyPointsDetailVO;
import com.sc.nft.enums.DaoEcologyPointsDetailAmountTypeEnum;
import com.sc.nft.enums.DaoEcologyPointsDetailRecordsTypeEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * DAO-生态燃料余额变动记录表(sc_dao_ecology_points_detail)数据Mapper
 *
 * @author Sun
 * @since 2023-12-06 18:45:44
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface DaoEcologyPointsDetailMapper extends BaseMapper<DaoEcologyPointsDetail> {

    /**
     * 分页获取dao生态燃料余额变动记录
     * @param page
     * @param daoId
     * @param amountType
     * @param type
     * @return
     */
    Page<DaoEcologyPointsDetailVO> ecologyPointsDetailPage(Page page, @Param("daoId") Long daoId,@Param("amountType") Integer amountType,@Param("type") Integer type);
}
